package com.gxy.learn.design.model.construction.adapter.object_adapter;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: gaoxueyong
 * @Date: 2022/11/7 18:20
 */
@Slf4j
public class TFCardImpl implements TFCard {
    /**
     * 读取TF卡数据
     *
     * @return java.lang.String
     * @Author gaoxueyong
     * @Date 6:20 下午 2022/11/7
     * @Param []
     **/
    @Override
    public String readTF() {
        return String.format("TFCard read msg: Hello Word");
    }

    /**
     * 把数据写入TF卡
     *
     * @param msg
     * @return void
     * @Author gaoxueyong
     * @Date 6:20 下午 2022/11/7
     * @Param [msg]
     */
    @Override
    public void waireTF(String msg) {
        log.info("TFCard write msg: {}",msg);
    }
}
